package com.zkingsoft.actions.customer;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zkingsoft.actions.common.BaseController;
import com.zkingsoft.services.UsersService;

/**
 * @project MatrixCms
 * @package com.zkingsoft.actions.superaction
 * @class SuperController.java
 * @author Matrix-J E-mail:<935090232@qq.com>
 * @date 2016年4月21日10:31
 * @description 普通用户
 */
@Controller
@RequestMapping(value = "customer")
public class CustomerController extends BaseController {

	@Resource
	private UsersService usersService;

	/**
	 * 页面定向方法，每个权限模块公用一个，每个模块共享一个一级路径，已便于进行权限过滤
	 * 
	 * @param page
	 * @return
	 */
	@RequestMapping(value = "/redirect/{page1}/{page2}")
	public String redirect(@PathVariable("page1") String page1, @PathVariable("page2") String page2) {
		return "customer/" + page1 + "/" + page2;
	}

	@RequestMapping(value = "/redirect/{page1}")
	public String redirect(@PathVariable("page1") String page1) {
		return "customer/" + page1;
	}

}